/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustHotel;
import com.sasis.dao.FlightAdjustHotelDao;
import com.sasis.service.FlightAdjustHotelManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustHotelManagerImpl extends BaseManager implements FlightAdjustHotelManager {
    private FlightAdjustHotelDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustHotelDao(FlightAdjustHotelDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustHotelManager#getFlightAdjustHotels(com.sasis.model.FlightAdjustHotel)
     */
    public List getFlightAdjustHotels(final FlightAdjustHotel flightAdjustHotel) {
        return dao.getFlightAdjustHotels(flightAdjustHotel);
    }

    /**
     * @see com.sasis.service.FlightAdjustHotelManager#getFlightAdjustHotel(String id)
     */
    public FlightAdjustHotel getFlightAdjustHotel(final String id) {
        return dao.getFlightAdjustHotel(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustHotelManager#saveFlightAdjustHotel(FlightAdjustHotel flightAdjustHotel)
     */
    public int saveFlightAdjustHotel(FlightAdjustHotel flightAdjustHotel) {
       return dao.saveFlightAdjustHotel(flightAdjustHotel);
    }

    /**
     * @see com.sasis.service.FlightAdjustHotelManager#removeFlightAdjustHotel(String id)
     */
    public void removeFlightAdjustHotel(FlightAdjustHotel flightAdjustHotel) {
        dao.removeFlightAdjustHotel( flightAdjustHotel);
    }
    
    public void deleteFlightAdjustHotel(FlightAdjustHotel flightAdjustHotel){
    	dao.deleteFlightAdjustHotel(flightAdjustHotel);
    }
    
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
